#pragma once
#ifndef AbstractImagePickerImpl_h__
#define AbstractImagePickerImpl_h__

#include <QObject>
#include <QUrl>

namespace TC
{
    class AbstractImagePicker : public QObject
    {
        Q_OBJECT

        Q_PROPERTY(QUrl fileUrl READ fileUrl NOTIFY fileUrlChanged)
    public:
        AbstractImagePicker(QObject *parent = nullptr) : QObject(parent){}
    public:
        virtual QUrl fileUrl() = 0;
        virtual void open() = 0;

    signals:
        void fileUrlChanged();
        void accepted();
        void rejected();
        void error();
    };
}
#endif // AbstractImagePickerImpl_h__

